(function($){
	$(function(){
		var callbackData = window.callbackData;
		var _data = {};
		rat.games.reel({
			container : '#reel',
			prizes    : callbackData.prizes,
			totalSize : callbackData.totalSize,
			start : function(donext){
				alert('开始发包取回服务器计算结果');
				if(true){
					//拿到中奖结果
					_data.winningResult = callbackData.prizes[window.resultData];
					alert('接收成功');
					donext();
				}
			},
			stop  : function(){
				var winningResult = _data.winningResult;
				alert('恭喜您中得' + winningResult.level + winningResult.name + winningResult.num + winningResult.unit +'!')
			}
		});


		rat.games.reel({
			container : '#reel2',
			start : function(a){
				a()
			}
		});
	});
})(jQuery);